package com.own.component.message.service;

import com.own.component.message.model.BaseMessageModel;

import java.util.List;

/**
 * BaseSmsService
 *
 * @author chenxueli
 * @date 2022-08-15 11:14:00
 */
public interface BaseSmsService extends BaseSendService<String, BaseMessageModel<String>> {

    /**
     * 批量发送信息
     *
     * @param list 发送的模型列表信息
     */
    @Override
    default void batchSend(List<BaseMessageModel<String>> list) {
        list.forEach(this::send);
    }

}
